CC = g++
CCFLAGS = -g -Wall
LDFLAGS =


.PHONY: all

all: test-svr4 test-cli4 test-svr6 test-cli6

test-svr4:
	$(CC) $(CCFLAGS) $(LDFLAGS) -DTEST_SERVER -lpthread -o $@ *.cc

test-cli4:
	$(CC) $(CCFLAGS) $(LDFLAGS) -DTEST_CLIENT -lpthread -o $@ *.cc

test-svr6:
	$(CC) $(CCFLAGS) $(LDFLAGS) -DTEST_SERVER_IN6 -lpthread -o $@ *.cc

test-cli6:
	$(CC) $(CCFLAGS) $(LDFLAGS) -DTEST_CLIENT_IN6 -lpthread -o $@ *.cc

clean:
	rm -f *.o *~ test-svr4 test-cli4 test-svr6 test-cli6
